package com.wrupple.muba.security.client.events;

import com.wrupple.muba.security.client.session.SessionSpreadHandler;

/**
 * Fired when a user entered authentication credentials, usally via an
 * authentication challenge form.
 */
public class AuthenticationCredentialsEnteredEvent extends AuthenticationEvent {
	/**
	 * Traditional username & password pair
	 */
	public SessionSpreadHandler credentials;

	public AuthenticationCredentialsEnteredEvent(SessionSpreadHandler credentials) {
		super();
		this.credentials = credentials;
	}

	@Override
	protected void dispatch(AuthenticationEventHandler handler) {
		handler.onAuthenticationCredentialsEntered(this);
	}

}
